<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据字典管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/dataDict.js"></script>
</head>
<body class="easyui-layout">

<%--数据字典目录--%>

<div data-options="region:'west',title:'数据字典目录',split:true" style="width:40%;">
    <td><table id="data_catalog"></table></td>
</div>
<%--数据字典目录明细--%>
<div data-options="region:'center',title:'数据字典目录明细'" style="padding:5px;background:#eee;">
    <td><table id="data_particulars"></table></td>
</div>

<%--列表顶部工具栏--%>
<div id="data_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<%--保存/编辑 对话框--%>
<div id="data_dialog">
    <form method="post" id="data_form">
        <input type="hidden" name="id">
        <table align="center" style="margin-top:15px" >
            <tr>
                <td>字典明细编码</td>
                <td><input class="easyui-textbox" name="sn"></td>
            </tr>
            <tr>
                <td>字典明细名称</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>字典明细简介</td>
                <td><input class="easyui-textbox" name="brief"></td>
            </tr>
            <tr>
                <td>字典明细目录</td>
                <td><input class="easyui-combobox" name="parent.id" data-options="
                                            url:'/dataDict/queryByParentIdIsNull',
                                            valueField: 'id',
                                            textField: 'name',"
                ></td>
            </tr>

        </table>
    </form>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">关闭</a>
</div>
</body>
</html>